package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.IPhoneTypeDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.PhoneType;
import com.ricchieri.service.interf.IPhoneTypeService;

@Transactional(readOnly = true)
public class PhoneTypeService implements IPhoneTypeService, Serializable {
	private static final long serialVersionUID = 2645686771310072053L;
	IPhoneTypeDao phoneTypeDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<PhoneType> getAllPhoneTypes() {
		BasicFilter filter = new BasicFilter();
		return phoneTypeDao.getAllPhoneTypes(filter);
	}

	public IPhoneTypeDao getPhoneTypeDao() {
		return phoneTypeDao;
	}

	public void setPhoneTypeDao(IPhoneTypeDao phoneTypeDao) {
		this.phoneTypeDao = phoneTypeDao;
	}

}
